package cn.itsource.mapper;

import cn.itsource.basic.domain.AjaxResult;
import cn.itsource.domain.org.Department;
import cn.itsource.domain.org.Employee;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    default List<Employee> pageList(Employee employee){
        EntityWrapper<Employee> wrapper = new EntityWrapper<>();
        // =
        wrapper.eq("username",employee.getUsername());
        return this.selectList(wrapper);
    };
}
